package com.woniu.job.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author song
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Resume对象", description = "")
public class Resume implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("categoryId")
    private String categoryId;

    @TableField("userId")
    private String userId;

    private String title;

    @TableField("realName")
    private String realName;

    private String gender;

    private LocalDate birthdate;

    private Integer height;

    private String marriage;

    @TableField("workExp")
    private String workExp;

    private String region;

    private String education;

    private String skill;

    private String telephone;

    private String email;

    private String address;

    private String qq;

    private String url;

    @TableField("emailAccepted")
    private Boolean emailAccepted;

    @TableField("salaryExpectation")
    private String salaryExpectation;

    private String photo;

    private String status;

    @TableField("updatetime")
    private Date updateTime;

    @TableField(exist = false)
    private User user;

    public Resume id(User user) {
        this.user = user;
        return this;
    }

    public Resume id(String id) {
        this.id = id;
        return this;
    }

    public Resume categoryId(String categoryId) {
        this.categoryId = categoryId;
        return this;
    }

    public Resume userId(String userId) {
        this.userId = userId;
        return this;
    }

    public Resume title(String title) {
        this.title = title;
        return this;
    }

    public Resume realName(String realName) {
        this.realName = realName;
        return this;
    }

    public Resume gender(String gender) {
        this.gender = gender;
        return this;
    }

    public Resume birthdate(LocalDate birthdate) {
        this.birthdate = birthdate;
        return this;
    }

    public Resume height(Integer height) {
        this.height = height;
        return this;
    }

    public Resume marriage(String marriage) {
        this.marriage = marriage;
        return this;
    }

    public Resume workExp(String workExp) {
        this.workExp = workExp;
        return this;
    }

    public Resume region(String region) {
        this.region = region;
        return this;
    }

    public Resume education(String education) {
        this.education = education;
        return this;
    }

    public Resume skill(String skill) {
        this.skill = skill;
        return this;
    }

    public Resume telephone(String telephone) {
        this.telephone = telephone;
        return this;
    }

    public Resume email(String email) {
        this.email = email;
        return this;
    }

    public Resume address(String address) {
        this.address = address;
        return this;
    }

    public Resume qq(String qq) {
        this.qq = qq;
        return this;
    }

    public Resume url(String url) {
        this.url = url;
        return this;
    }

    public Resume emailAccepted(Boolean emailAccepted) {
        this.emailAccepted = emailAccepted;
        return this;
    }

    public Resume salaryExpectation(String salaryExpectation) {
        this.salaryExpectation = salaryExpectation;
        return this;
    }

    public Resume photo(String photo) {
        this.photo = photo;
        return this;
    }

    public Resume status(String status) {
        this.status = status;
        return this;
    }
}
